<%@ Page Language="C#" AutoEventWireup="true" CodeFile="OptProjectHeaderInfo.aspx.cs" 
Inherits="OptProjectHeaderInfo" 
maintainscrollpositiononpostback="true" culture="auto:en-US" uiculture="auto" 
meta:resourcekey="PageResource1" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
  <title>Project Monitoring System</title>
    <link href="Ip.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <form id="form1" runat="server">
        <asp:ScriptManager ID="ScriptManager1" runat="server" />
        <table width="700px">
            <tr>
            <td style="width: 468px; height: 82px;">
                <asp:ImageButton ID="ibProjectInfo" runat="server" ImageUrl="~/Images/p_ProjInfo-en-us.gif" meta:resourcekey="ibProjectInfoResource1" OnClick="ibProjectInfo_Click" />
                <asp:ImageButton ID="ibViewDoc" runat="server" ImageUrl="~/Images/p_ViewDoc-en-us.gif" meta:resourcekey="ibViewDocResource1" OnClick="ibViewDoc_Click" />
                <asp:ImageButton ID="ibProjectHeaderInfo" runat="server" ImageUrl="~/Images/p_AppProc-en-us.gif" meta:resourcekey="ibProjectHeaderInfoResource1" OnClick="ibProjectHeaderInfo_Click" />
                <asp:ImageButton ID="ibExpenditure" runat="server" ImageUrl="~/Images/p_Finance-en-us.gif" meta:resourcekey="ibExpenditureResource1" OnClick="ibExpenditure_Click" />
                <asp:TextBox ID="txtProjectGroupID" runat="server" Visible="False" Width="41px"></asp:TextBox>
                <asp:TextBox ID="txtProjectCode" runat="server" Visible="False" Width="41px"></asp:TextBox>
                <asp:TextBox ID="txtType" runat="server" Visible="False" Width="41px"></asp:TextBox>
            </td>
            <td align="right" style="width: 200px; height: 82px;">
                <asp:Button ID="btnProcedureSetTemplate" runat="server" Text="Procedure Set Template" meta:resourcekey="lblProcedureSetTemplate" />
            </td>
            </tr>
        </table>
        <table width="700">
            <tr>
               <td align="right">
                    <asp:Label ID="lblProcedureSetTemplate" runat="server" Text="Procedure Set Template" meta:resourcekey="lblProcedureSetTemplate"></asp:Label>
                    <asp:TextBox ID="txtProcedureSetTemplate" runat="server" Enabled="False"></asp:TextBox>
                    <asp:Label ID="lblStatus" runat="server" Text="Status" meta:resourcekey="lblStatus"></asp:Label>
                    <asp:DropDownList ID="ddlStatus" runat="server" AutoPostBack="True" OnSelectedIndexChanged="ddlStatus_SelectedIndexChanged">
                        <asp:ListItem></asp:ListItem>
                        <asp:ListItem>New</asp:ListItem>
                        <asp:ListItem>Confirm</asp:ListItem>
                    </asp:DropDownList>
                </td>
            </tr>
            <tr>
                <td align="left">
                    <asp:Label ID="lblError" runat="server" Text="[ErrorMessage]" CssClass="error" Visible="False" meta:resourcekey="lblErrorResource1"></asp:Label>
                </td>
            </tr>
            <tr>
                <td align="left">
                    <asp:ImageButton ID="ibSection1" Visible="false" runat="server" ImageUrl="~/Images/s1_blue_ap-en-us.gif" OnClick="ibSection1_Click" meta:resourcekey="ibSection1Resource1" />
                    <asp:ImageButton ID="ibSection2" Visible="false" runat="server" ImageUrl="~/Images/s2_blue_ap-en-us.gif" OnClick="ibSection2_Click" meta:resourcekey="ibSection2Resource1" />
                    <asp:ImageButton ID="ibSection3" Visible="false" runat="server" ImageUrl="~/Images/s3_blue_ap-en-us.gif" OnClick="ibSection3_Click" meta:resourcekey="ibSection3Resource1" />
                    <asp:ImageButton ID="ibSection4" Visible="false" runat="server" ImageUrl="~/Images/s4_blue_ap-en-us.gif" OnClick="ibSection4_Click" meta:resourcekey="ibSection4Resource1" />
                 </td>
            </tr>
            <tr>
                <td align="left">
                    <asp:Button ID="btnSection1" Width="120" runat="server" Text="Section1" OnClick="btnSection1_Click"/>
                    <asp:Button ID="btnSection2" Width="120" runat="server" Text="Section2" OnClick="btnSection2_Click"/>
                    <asp:Button ID="btnSection3" Width="120" runat="server" Text="Section3" OnClick="btnSection3_Click"/>
                    <asp:Button ID="btnSection4" Width="120" runat="server" Text="Section4" OnClick="btnSection4_Click"/>
                </td>
            </tr>
        </table>
        <asp:Panel ID="HeaderInfoPanel" runat="server" Height="50px" Width="650px" meta:resourcekey="HeaderInfoPanelResource1">
            <asp:Panel ID="PanelSection1" runat="server" Height="50px" Width="650px" meta:resourcekey="PanelSEction1Resource1">
                <table width="700" style="background-color: #00BFFF; color: Black; border-width: medium; border-color: Black">
                    <tr>
                        <td width="200">
                            <asp:Label ID="lblSection1" runat="server" Font-Bold="True" Font-Names="Tahoma,Verdana,Helvetica,Helvetica-Narrow,sans-serif" meta:resourcekey="lblSection1" Font-Size="Small" Text="Section I" Width="200px"></asp:Label>
                        </td>
                        <td>
                            <asp:Button ID="btnAddSection1" runat="server" Text="Add" OnClick="btnAddSection1_Click" meta:resourcekey="btnAddSection1" CssClass="submit" />
                            <asp:Button ID="btnModifySection1" runat="server" Text="Edit" OnClick="btnModifySection1_Click" meta:resourcekey="btnModifySection1" CssClass="submit" />
                        </td>
                        <td style="vertical-align: top; width: 150px; text-align: right">
                            <asp:Label ID="lblHeadingTemplateSection1" runat="server" Text="Procedure Template" meta:resourcekey="lblHeadingTemplateSection1Resource1"></asp:Label>
                        </td>
                        <td  style="vertical-align: top; text-align: left; width: 149px;">
                            <asp:ObjectDataSource ID="ODSHdgTmpltSec1" runat="server" DeleteMethod="Delete" InsertMethod="Insert"
                                OldValuesParameterFormatString="original_{0}" SelectMethod="GetHeadingTemplateBySection"
                                TypeName="IPTableAdapters.HeadingTemplateTableAdapter" UpdateMethod="Update">
                                <DeleteParameters>
                                    <asp:Parameter Name="HeadingCode" Type="String" />
                                    <asp:Parameter Name="Section" Type="Int32" />
                                </DeleteParameters>
                                <UpdateParameters>
                                    <asp:Parameter Name="HeadingName" Type="String" />
                                    <asp:Parameter Name="HeadingNameChinese" Type="String" />
                                    <asp:Parameter Name="HeadingDescription" Type="String" />
                                    <asp:Parameter Name="CreateBy" Type="String" />
                                    <asp:Parameter Name="UpdateBy" Type="String" />
                                    <asp:Parameter Name="OwnerGroupID" Type="String" />
                                    <asp:Parameter Name="HeadingCode" Type="String" />
                                    <asp:Parameter Name="Section" Type="Int32" />
                                </UpdateParameters>
                                <SelectParameters>
                                    <asp:Parameter DefaultValue="1" Name="Section" Type="Int32" />
                                </SelectParameters>
                                <InsertParameters>
                                    <asp:Parameter Name="HeadingCode" Type="String" />
                                    <asp:Parameter Name="HeadingName" Type="String" />
                                    <asp:Parameter Name="HeadingNameChinese" Type="String" />
                                    <asp:Parameter Name="HeadingDescription" Type="String" />
                                    <asp:Parameter Name="Section" Type="Int32" />
                                    <asp:Parameter Name="CreateBy" Type="String" />
                                    <asp:Parameter Name="UpdateBy" Type="String" />
                                    <asp:Parameter Name="OwnerGroupID" Type="String" />
                                </InsertParameters>
                            </asp:ObjectDataSource>
                            <asp:DropDownList ID="ddlHdgTmpltSec1" runat="server" 
                                AutoPostBack="True" 
                                Width="212px" OnSelectedIndexChanged="ddlHdgTmpltSec1_SelectedIndexChanged" meta:resourcekey="ddlHdgTmpltSec1Resource1"
                                OnPreRender="ddlHdgTmpltSec1_PreRender">
                            </asp:DropDownList>
                        </td>
                    </tr>
                </table>
                <br />
                <asp:ObjectDataSource ID="ODSHeaderInfoSect1" runat="server" SelectMethod="GetHeaderInfoByProjectCodeBySection"
                    TypeName="IPTableAdapters.ProjectHeadingTableAdapter" DeleteMethod="Delete" InsertMethod="Insert"
                    UpdateMethod="Update" OldValuesParameterFormatString="original_{0}">
                    <SelectParameters>
                        <asp:SessionParameter DefaultValue="1" Name="AlertDay" SessionField="AlertDay" Type="Int32" />
                        <asp:QueryStringParameter DefaultValue="x" Name="ProjectCode" QueryStringField="pc"
                            Type="String" />
                        <asp:Parameter DefaultValue="1" Name="Section" Type="Int32" />
                    </SelectParameters>
                    <DeleteParameters>
                        <asp:Parameter Name="Original_RowPointer" Type="String" />
                    </DeleteParameters>
                    <UpdateParameters>
                        <asp:Parameter Name="HeadingName" Type="String" />
                        <asp:Parameter Name="Section" Type="Int32" />
                        <asp:Parameter Name="DocumentNumber" Type="String" />
                        <asp:Parameter Name="Status" Type="String" />
                        <asp:Parameter Name="Remark" Type="String" />
                        <asp:Parameter Name="ACMEDueDate" Type="DateTime" />
                        <asp:Parameter Name="AgentDueDate" Type="DateTime" />
                        <asp:Parameter Name="CompletionDate" Type="DateTime" />
                        <asp:Parameter Name="ResponsibleBy" Type="String" />
                        <asp:Parameter Name="Remark1" Type="String" />
                        <asp:Parameter Name="Remark2" Type="String" />
                        <asp:Parameter Name="Remark3" Type="String" />
                        <asp:Parameter Name="Remark4" Type="String" />
                        <asp:Parameter Name="Remark5" Type="String" />
                        <asp:Parameter Name="DateFld1" Type="DateTime" />
                        <asp:Parameter Name="DateFld2" Type="DateTime" />
                        <asp:Parameter Name="DateFld3" Type="DateTime" />
                        <asp:Parameter Name="DateFld4" Type="DateTime" />
                        <asp:Parameter Name="DateFld5" Type="DateTime" />
                        <asp:Parameter Name="DeciFld1" Type="Decimal" />
                        <asp:Parameter Name="DeciFld2" Type="Decimal" />
                        <asp:Parameter Name="UpdateBy" Type="String" />
                        <asp:Parameter Name="Sequence" Type="String" />
                        <asp:Parameter Name="Original_RowPointer" Type="Object" />
                    </UpdateParameters>
                    <InsertParameters>
                        <asp:Parameter Name="ProjectCode" Type="String" />
                        <asp:Parameter Name="HeadingCode" Type="String" />
                        <asp:Parameter Name="HeadingName" Type="String" />
                        <asp:Parameter Name="Section" Type="Int32" />
                        <asp:Parameter Name="DocumentNumber" Type="String" />
                        <asp:Parameter Name="Status" Type="String" />
                        <asp:Parameter Name="Remark" Type="String" />
                        <asp:Parameter Name="ACMEDueDate" Type="DateTime" />
                        <asp:Parameter Name="AgentDueDate" Type="DateTime" />
                        <asp:Parameter Name="CompletionDate" Type="DateTime" />
                        <asp:Parameter Name="ResponsibleBy" Type="String" />
                        <asp:Parameter Name="Remark1" Type="String" />
                        <asp:Parameter Name="Remark2" Type="String" />
                        <asp:Parameter Name="Remark3" Type="String" />
                        <asp:Parameter Name="Remark4" Type="String" />
                        <asp:Parameter Name="Remark5" Type="String" />
                        <asp:Parameter Name="DateFld1" Type="DateTime" />
                        <asp:Parameter Name="DateFld2" Type="DateTime" />
                        <asp:Parameter Name="DateFld3" Type="DateTime" />
                        <asp:Parameter Name="DateFld4" Type="DateTime" />
                        <asp:Parameter Name="DateFld5" Type="DateTime" />
                        <asp:Parameter Name="DeciFld1" Type="Decimal" />
                        <asp:Parameter Name="DeciFld2" Type="Decimal" />
                        <asp:Parameter Name="CreateBy" Type="String" />
                        <asp:Parameter Name="UpdateBy" Type="String" />
                        <asp:Parameter Name="OwnerGroupID" Type="String" />
                        <asp:Parameter Name="FromTemplateYN" Type="Boolean" />
                        <asp:Parameter Name="Sequence" Type="Int32" />
                    </InsertParameters>
                </asp:ObjectDataSource>
                <asp:GridView CssClass="Grid" ID="GridViewHeaderInfo1" runat="server" 
                    BorderStyle="Solid" BorderWidth="1px" AutoGenerateColumns="False" BackColor="#DEBA84"
                    BorderColor="#660000" CellPadding="0" CellSpacing="0" DataKeyNames="ProjectCode,HeadingCode,HeadingName,Section,Action,DocumentNumber,Status,Remark,ACMEDueDate,AgentDueDate,CompletionDate,ResponsibleBy,Remark1,Remark2,Remark3,Remark4,Remark5,DateFld1,DateFld2,DateFld3,DateFld4,DateFld5,DeciFld1,DeciFld2,CreateBy,UpdateBy,OwnerGroupID,FromTemplateYN,Sequence,RowPointer"
                    DataSourceID="ODSHeaderInfoSect1" Width="700px" Height="1px" Font-Names="Tahoma,Verdana,Helvetica,Helvetica-Narrow,sans-serif"
                    Font-Size="Small" EmptyDataText="NIL" OnSelectedIndexChanged="GridViewHeaderInfo_SelectedIndexChanged"
                    meta:resourcekey="GridViewHeaderInfoResource1" OnRowDataBound="GridViewHeaderInfo1_RowDataBound" AllowPaging="True" >
                    <Columns>
                        <asp:BoundField DataField="ProjectCode" HeaderText="ProjectCode" ReadOnly="True"
                            Visible="False" SortExpression="ProjectCode" meta:resourcekey="BoundFieldResource1" />
                        <asp:ButtonField CommandName="Select" DataTextField="RowPointer" HeaderText="RowPointer"
                            SortExpression="RowPointer" Visible="False" meta:resourcekey="ButtonFieldResource2" />
                        <asp:ButtonField CommandName="Select" DataTextField="Sequence" HeaderText="Sequence"
                            SortExpression="Sequence" Text="Button" meta:resourcekey="ButtonFieldResource3" />
                        <asp:BoundField DataField="Sequence" HeaderText="Sequence" SortExpression="Sequence"
                            Visible="False" meta:resourcekey="BoundFieldResource29">
                            <ItemStyle Width="80px" />
                        </asp:BoundField>
                        <asp:BoundField DataField="HeadingCode" HeaderText="Procedure Code" ReadOnly="True"
                            SortExpression="HeadingCode" meta:resourcekey="BoundFieldResource2">
                            <ItemStyle Width="150px" />
                            <HeaderStyle CssClass="GridHeaderStyle" Wrap="False" />
                        </asp:BoundField>
                        <asp:BoundField DataField="HeadingName" HeaderText="Procedure Name" SortExpression="HeadingName"
                            meta:resourcekey="BoundFieldResource3">
                            <ItemStyle Wrap="False" Width="250px" />
                        </asp:BoundField>
                        <asp:BoundField DataField="DocumentNumber" HeaderText="Document Number" SortExpression="DocumentNumber"
                            Visible="False" meta:resourcekey="BoundFieldResource4">
                            <ItemStyle Width="6%" />
                        </asp:BoundField>
                        <asp:BoundField DataField="Section" HeaderText="Section" SortExpression="Section"
                            Visible="False" meta:resourcekey="BoundFieldResource5" />
                        <asp:CheckBoxField DataField="Action" HeaderText="Action" SortExpression="Action"
                            meta:resourcekey="CheckBoxFieldResource5" Visible="False">
                            <ItemStyle Width="4%" />
                        </asp:CheckBoxField>
                        <asp:BoundField DataField="ACMEDueDate" HeaderText="MyCompany Due Date" SortExpression="ACMEDueDate"
                            DataFormatString="{0:dd/MM/yyyy}" HtmlEncode="False" meta:resourcekey="BoundFieldResource6">
                            <HeaderStyle CssClass="GridHeaderStyle" Wrap="True" />
                            <ItemStyle Width="80px" />
                        </asp:BoundField>
                        <asp:BoundField DataField="AgentDueDate" HeaderText="Agent Due Date" SortExpression="AgentDueDate"
                            DataFormatString="{0:dd/MM/yyyy}" HtmlEncode="False" meta:resourcekey="BoundFieldResource7">
                            <HeaderStyle CssClass="GridHeaderStyle" Wrap="True" />
                            <ItemStyle Width="80px" />
                        </asp:BoundField>
                        <asp:BoundField DataField="CompletionDate" HeaderText="Completion Date" SortExpression="CompletionDate"
                            DataFormatString="{0:dd/MM/yyyy}" HtmlEncode="False" meta:resourcekey="BoundFieldResource8">
                            <HeaderStyle CssClass="GridHeaderStyle" Wrap="True" />
                            <ItemStyle Width="80px" />
                        </asp:BoundField>
                        <asp:BoundField DataField="Status" HeaderText="Status" SortExpression="Status" meta:resourcekey="BoundFieldResource9">
                            <ItemStyle Width="150px" />
                        </asp:BoundField>
                        <asp:BoundField DataField="Remark" HeaderText="Remark" SortExpression="Remark" meta:resourcekey="BoundFieldResource10">
                            <ItemStyle Width="400px" />
                        </asp:BoundField>
                        <asp:BoundField DataField="ResponsibleBy" HeaderText="ResponsibleBy" SortExpression="ResponsibleBy"
                            Visible="False" meta:resourcekey="BoundFieldResource11" />
                        <asp:BoundField DataField="Remark1" HeaderText="Remark1" SortExpression="Remark1"
                            Visible="False" meta:resourcekey="BoundFieldResource12" />
                        <asp:BoundField DataField="Remark2" HeaderText="Remark2" SortExpression="Remark2"
                            Visible="False" meta:resourcekey="BoundFieldResource13" />
                        <asp:BoundField DataField="Remark3" HeaderText="Remark3" SortExpression="Remark3"
                            Visible="False" meta:resourcekey="BoundFieldResource14" />
                        <asp:BoundField DataField="Remark4" HeaderText="Remark4" SortExpression="Remark4"
                            Visible="False" meta:resourcekey="BoundFieldResource15" />
                        <asp:BoundField DataField="Remark5" HeaderText="Remark5" SortExpression="Remark5"
                            Visible="False" meta:resourcekey="BoundFieldResource16" />
                        <asp:BoundField DataField="DateFld1" HeaderText="DateFld1" SortExpression="DateFld1"
                            Visible="False" DataFormatString="{0:dd/MM/yyyy}" HtmlEncode="False" meta:resourcekey="BoundFieldResource17">
                            <HeaderStyle CssClass="GridHeaderStyle" Width="8%" Wrap="False" />
                        </asp:BoundField>
                        <asp:BoundField DataField="DateFld2" HeaderText="DateFld2" SortExpression="DateFld2"
                            Visible="False" DataFormatString="{0:dd/MM/yyyy}" HtmlEncode="False" meta:resourcekey="BoundFieldResource18">
                            <HeaderStyle CssClass="GridHeaderStyle" Width="8%" Wrap="False" />
                        </asp:BoundField>
                        <asp:BoundField DataField="DateFld3" HeaderText="DateFld3" SortExpression="DateFld3"
                            Visible="False" DataFormatString="{0:dd/MM/yyyy}" HtmlEncode="False" meta:resourcekey="BoundFieldResource19">
                            <HeaderStyle CssClass="GridHeaderStyle" Width="8%" Wrap="False" />
                        </asp:BoundField>
                        <asp:BoundField DataField="DateFld4" HeaderText="DateFld4" SortExpression="DateFld4"
                            Visible="False" DataFormatString="{0:dd/MM/yyyy}" HtmlEncode="False" meta:resourcekey="BoundFieldResource20">
                            <HeaderStyle CssClass="GridHeaderStyle" Width="8%" Wrap="False" />
                        </asp:BoundField>
                        <asp:BoundField DataField="DateFld5" HeaderText="DateFld5" SortExpression="DateFld5"
                            Visible="False" DataFormatString="{0:dd/MM/yyyy}" HtmlEncode="False" meta:resourcekey="BoundFieldResource21">
                            <HeaderStyle CssClass="GridHeaderStyle" Width="8%" Wrap="False" />
                        </asp:BoundField>
                        <asp:BoundField DataField="DeciFld1" HeaderText="DeciFld1" SortExpression="DeciFld1"
                            Visible="False" meta:resourcekey="BoundFieldResource22" />
                        <asp:BoundField DataField="DeciFld2" HeaderText="DeciFld2" SortExpression="DeciFld2"
                            Visible="False" meta:resourcekey="BoundFieldResource23" />
                        <asp:BoundField DataField="CreateBy" HeaderText="CreateBy" SortExpression="CreateBy"
                            Visible="False" meta:resourcekey="BoundFieldResource24" />
                        <asp:BoundField DataField="CreateDate" HeaderText="CreateDate" SortExpression="CreateDate"
                            Visible="False" DataFormatString="{0:dd/MM/yyyy}" HtmlEncode="False" meta:resourcekey="BoundFieldResource25">
                            <HeaderStyle CssClass="GridHeaderStyle" Width="8%" Wrap="False" />
                        </asp:BoundField>
                        <asp:BoundField DataField="UpdateBy" HeaderText="UpdateBy" SortExpression="UpdateBy"
                            Visible="False" meta:resourcekey="BoundFieldResource26" />
                        <asp:BoundField DataField="UpdateDate" HeaderText="UpdateDate" SortExpression="UpdateDate"
                            Visible="False" DataFormatString="{0:dd/MM/yyyy}" HtmlEncode="False" meta:resourcekey="BoundFieldResource27">
                            <HeaderStyle CssClass="GridHeaderStyle" Width="8%" Wrap="False" />
                        </asp:BoundField>
                        <asp:BoundField DataField="OwnerGroupID" HeaderText="OwnerGroupID" SortExpression="OwnerGroupID"
                            Visible="False" meta:resourcekey="BoundFieldResource28" />
                        <asp:TemplateField HeaderText="Delete" meta:resourcekey="TemplateFieldResource1">
                            <ItemStyle HorizontalAlign="Center" Width="60px" />
                            <ItemTemplate>
                                <asp:ImageButton ID="ibDeleteSection1" CommandArgument='<%# (Container as GridViewRow).RowIndex %>' runat="server" ImageUrl="~/Images/icon-delete.jpg" 
                                    OnClick="ibDeleteSection1"
                                    meta:resourcekey="ibDeleteSection1Resource1" />
                            </ItemTemplate>
                        </asp:TemplateField>                       
                        <asp:TemplateField HeaderText="IsLastProgress" Visible="False" meta:resourcekey="TemplateFieldResource2">
                            <ItemTemplate>
                                <asp:CheckBox ID="chkIsLastProgress" runat="server" Checked='<%# Bind("IsLastProgress") %>'
                                    meta:resourcekey="chkIsLastProgressResource1" />
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:BoundField DataField="FromTemplateYN" HeaderText="FromTemplateYN" SortExpression="FromTemplateYN"
                            Visible="False" meta:resourcekey="BoundFieldResource30" />
                        <asp:BoundField DataField="Overdue" ShowHeader="False">
                            <ControlStyle Width="0px" ForeColor="#DEBA84" />
                            <ItemStyle Width="0px" Font-Names="#deba84" />
                            <HeaderStyle Width="0px" />
                            <FooterStyle Width="0px" />
                        </asp:BoundField>
                    </Columns>
                    <HeaderStyle CssClass="GridHeaderStyle" ForeColor="White" />
                    <RowStyle CssClass="GridRowStyle"/>
                    <AlternatingRowStyle CssClass="GridAltRowStyle"/>
                    <SelectedRowStyle CssClass="GridSelectedRowStyle"/>
                    <PagerStyle CssClass="GridPagerStyle" ForeColor="White"/>
                    <FooterStyle CssClass="GridFooterStyle"/>
                </asp:GridView>
            </asp:Panel>
            <asp:Panel ID="PanelSection2" runat="server" Height="50px" Width="700px" Visible="False" meta:resourcekey="PanelSection2Resource1">
                <table width="100%" style="background-color: #00BFFF; color: Black; border-width: medium;
                    border-color: Black">
                    <tr>
                        <td style="width: 200px">
                            <asp:Label ID="lblSection2" runat="server" Text="Section II" Font-Bold="True"
                                meta:resourcekey="lblSection3" Font-Names="Tahoma,Verdana,Helvetica,Helvetica-Narrow,sans-serif"
                                Font-Size="Small" Width="100%"></asp:Label>
                        </td>
                        <td style="width: 266px; text-align: center;">
                            <asp:Button ID="btnAddSection2" runat="server" Text="Add" CssClass="submit" OnClick="btnAddSection2_Click"
                                meta:resourcekey="btnAddSection3" />
                            <asp:Button ID="btnModifySection2" runat="server" Text="Edit" CssClass="submit" meta:resourcekey="btnModifySection3"
                                OnClick="btnModifySection2_Click" />
                        </td>
                        <td style="vertical-align: top; width: 150px; text-align: right">
                            <asp:Label ID="Label2" runat="server" Text="Procedure Template" Width="100%" meta:resourcekey="Label2Resource1"></asp:Label></td>
                        <td style="vertical-align: top; text-align: left; width: 149px;">
                            <asp:ObjectDataSource ID="ODSHdgTmpltSec2" runat="server" DeleteMethod="Delete" InsertMethod="Insert"
                                OldValuesParameterFormatString="original_{0}" SelectMethod="GetHeadingTemplateBySection"
                                TypeName="IPTableAdapters.HeadingTemplateTableAdapter" UpdateMethod="Update">
                                <DeleteParameters>
                                    <asp:Parameter Name="HeadingCode" Type="String" />
                                    <asp:Parameter Name="Section" Type="Int32" />
                                </DeleteParameters>
                                <UpdateParameters>
                                    <asp:Parameter Name="HeadingName" Type="String" />
                                    <asp:Parameter Name="HeadingNameChinese" Type="String" />
                                    <asp:Parameter Name="HeadingDescription" Type="String" />
                                    <asp:Parameter Name="CreateBy" Type="String" />
                                    <asp:Parameter Name="UpdateBy" Type="String" />
                                    <asp:Parameter Name="OwnerGroupID" Type="String" />
                                    <asp:Parameter Name="HeadingCode" Type="String" />
                                    <asp:Parameter Name="Section" Type="Int32" />
                                </UpdateParameters>
                                <SelectParameters>
                                    <asp:Parameter DefaultValue="2" Name="Section" Type="Int32" />
                                </SelectParameters>
                                <InsertParameters>
                                    <asp:Parameter Name="HeadingCode" Type="String" />
                                    <asp:Parameter Name="HeadingName" Type="String" />
                                    <asp:Parameter Name="HeadingNameChinese" Type="String" />
                                    <asp:Parameter Name="HeadingDescription" Type="String" />
                                    <asp:Parameter Name="Section" Type="Int32" />
                                    <asp:Parameter Name="CreateBy" Type="String" />
                                    <asp:Parameter Name="UpdateBy" Type="String" />
                                    <asp:Parameter Name="OwnerGroupID" Type="String" />
                                </InsertParameters>
                            </asp:ObjectDataSource>
                            <asp:DropDownList ID="ddlHdgTmpltSec2" runat="server" 
                                AutoPostBack="True" 
                                Width="212px" OnSelectedIndexChanged="ddlHdgTmpltSec2_SelectedIndexChanged" meta:resourcekey="ddlHdgTmpltSec2Resource1"
                                OnPreRender="ddlHdgTmpltSec2_PreRender">
                            </asp:DropDownList></td>
                    </tr>
                </table>
                <asp:ObjectDataSource ID="ODSHeaderInfoSect2" runat="server" SelectMethod="GetHeaderInfoByProjectCodeBySection"
                    TypeName="IPTableAdapters.ProjectHeadingTableAdapter" DeleteMethod="Delete" InsertMethod="Insert"
                    UpdateMethod="Update" OldValuesParameterFormatString="original_{0}">
                    <SelectParameters>
                        <asp:SessionParameter DefaultValue="0" Name="AlertDay" SessionField="AlertDay" Type="Int32" />
                        <asp:QueryStringParameter DefaultValue="x" Name="ProjectCode" QueryStringField="pc"
                            Type="String" />
                        <asp:Parameter DefaultValue="2" Name="Section" Type="Int32" />
                    </SelectParameters>
                    <DeleteParameters>
                        <asp:Parameter Name="Original_RowPointer" Type="String" />
                    </DeleteParameters>
                    <UpdateParameters>
                        <asp:Parameter Name="HeadingName" Type="String" />
                        <asp:Parameter Name="Section" Type="Int32" />
                        <asp:Parameter Name="DocumentNumber" Type="String" />
                        <asp:Parameter Name="Status" Type="String" />
                        <asp:Parameter Name="Remark" Type="String" />
                        <asp:Parameter Name="ACMEDueDate" Type="DateTime" />
                        <asp:Parameter Name="AgentDueDate" Type="DateTime" />
                        <asp:Parameter Name="CompletionDate" Type="DateTime" />
                        <asp:Parameter Name="ResponsibleBy" Type="String" />
                        <asp:Parameter Name="Remark1" Type="String" />
                        <asp:Parameter Name="Remark2" Type="String" />
                        <asp:Parameter Name="Remark3" Type="String" />
                        <asp:Parameter Name="Remark4" Type="String" />
                        <asp:Parameter Name="Remark5" Type="String" />
                        <asp:Parameter Name="DateFld1" Type="DateTime" />
                        <asp:Parameter Name="DateFld2" Type="DateTime" />
                        <asp:Parameter Name="DateFld3" Type="DateTime" />
                        <asp:Parameter Name="DateFld4" Type="DateTime" />
                        <asp:Parameter Name="DateFld5" Type="DateTime" />
                        <asp:Parameter Name="DeciFld1" Type="Decimal" />
                        <asp:Parameter Name="DeciFld2" Type="Decimal" />
                        <asp:Parameter Name="UpdateBy" Type="String" />
                        <asp:Parameter Name="Sequence" Type="String" />
                        <asp:Parameter Name="Original_RowPointer" Type="Object" />
                    </UpdateParameters>
                    <InsertParameters>
                        <asp:Parameter Name="ProjectCode" Type="String" />
                        <asp:Parameter Name="HeadingCode" Type="String" />
                        <asp:Parameter Name="HeadingName" Type="String" />
                        <asp:Parameter Name="Section" Type="Int32" />
                        <asp:Parameter Name="DocumentNumber" Type="String" />
                        <asp:Parameter Name="Status" Type="String" />
                        <asp:Parameter Name="Remark" Type="String" />
                        <asp:Parameter Name="ACMEDueDate" Type="DateTime" />
                        <asp:Parameter Name="AgentDueDate" Type="DateTime" />
                        <asp:Parameter Name="CompletionDate" Type="DateTime" />
                        <asp:Parameter Name="ResponsibleBy" Type="String" />
                        <asp:Parameter Name="Remark1" Type="String" />
                        <asp:Parameter Name="Remark2" Type="String" />
                        <asp:Parameter Name="Remark3" Type="String" />
                        <asp:Parameter Name="Remark4" Type="String" />
                        <asp:Parameter Name="Remark5" Type="String" />
                        <asp:Parameter Name="DateFld1" Type="DateTime" />
                        <asp:Parameter Name="DateFld2" Type="DateTime" />
                        <asp:Parameter Name="DateFld3" Type="DateTime" />
                        <asp:Parameter Name="DateFld4" Type="DateTime" />
                        <asp:Parameter Name="DateFld5" Type="DateTime" />
                        <asp:Parameter Name="DeciFld1" Type="Decimal" />
                        <asp:Parameter Name="DeciFld2" Type="Decimal" />
                        <asp:Parameter Name="CreateBy" Type="String" />
                        <asp:Parameter Name="UpdateBy" Type="String" />
                        <asp:Parameter Name="OwnerGroupID" Type="String" />
                        <asp:Parameter Name="FromTemplateYN" Type="Boolean" />
                        <asp:Parameter Name="Sequence" Type="Int32" />
                    </InsertParameters>
                </asp:ObjectDataSource>
                <asp:GridView CssClass="Grid" ID="GridViewHeaderInfoSect2" runat="server" CellPadding="3"
                    BorderStyle="None" BorderWidth="1px" AutoGenerateColumns="False" BackColor="#DEBA84"
                    BorderColor="#DEBA84" CellSpacing="2" DataKeyNames="ProjectCode,HeadingCode,HeadingName,Section,Action,DocumentNumber,Status,Remark,ACMEDueDate,AgentDueDate,CompletionDate,ResponsibleBy,Remark1,Remark2,Remark3,Remark4,Remark5,DateFld1,DateFld2,DateFld3,DateFld4,DateFld5,DeciFld1,DeciFld2,CreateBy,UpdateBy,OwnerGroupID,FromTemplateYN,Sequence,RowPointer"
                    DataSourceID="ODSHeaderInfoSect2" Width="700px" Height="1px" Font-Names="Tahoma,Verdana,Helvetica,Helvetica-Narrow,sans-serif"
                    Font-Size="Small" EmptyDataText="NIL" OnSelectedIndexChanged="GridViewHeaderInfoSect2_SelectedIndexChanged"
                    meta:resourcekey="GridViewHeaderInfoSect3Resource1" OnRowDataBound="GridViewHeaderInfoSect2_RowDataBound" AllowPaging="True" >
                    <FooterStyle CssClass="GridFooterStyle" BackColor="#F7DFB5" ForeColor="#8C4510" />
                    <AlternatingRowStyle BorderColor="#C0C000" />
                    <Columns>
                        <asp:BoundField DataField="ProjectCode" HeaderText="ProjectCode" ReadOnly="True"
                            Visible="False" SortExpression="ProjectCode" meta:resourcekey="BoundFieldResource1" />
                        <asp:ButtonField CommandName="Select" DataTextField="RowPointer" HeaderText="RowPointer"
                            SortExpression="RowPointer" Visible="False" meta:resourcekey="ButtonFieldResource4" />
                        <asp:ButtonField CommandName="Select" DataTextField="Sequence" HeaderText="Sequence"
                            SortExpression="Sequence" Text="Button" meta:resourcekey="ButtonFieldResource5" />
                        <asp:BoundField DataField="Sequence" HeaderText="Sequence" SortExpression="Sequence"
                            Visible="False" meta:resourcekey="BoundFieldResource31">
                            <ItemStyle Width="80px" />
                        </asp:BoundField>
                        <asp:BoundField DataField="HeadingCode" HeaderText="Procedure Code" ReadOnly="True"
                            SortExpression="HeadingCode" meta:resourcekey="BoundFieldResource2">
                            <ItemStyle Width="150px" />
                            <HeaderStyle CssClass="GridHeaderStyle" Wrap="False" />
                        </asp:BoundField>
                        <asp:BoundField DataField="HeadingName" HeaderText="Procedure Name" SortExpression="HeadingName"
                            meta:resourcekey="BoundFieldResource3">
                            <ItemStyle Wrap="False" Width="250px" />
                        </asp:BoundField>
                        <asp:BoundField DataField="DocumentNumber" HeaderText="Document Number" SortExpression="DocumentNumber"
                            Visible="False" meta:resourcekey="BoundFieldResource4">
                            <ItemStyle Width="6%" />
                        </asp:BoundField>
                        <asp:BoundField DataField="Section" HeaderText="Section" SortExpression="Section"
                            Visible="False" meta:resourcekey="BoundFieldResource5" />
                        <asp:CheckBoxField DataField="Action" HeaderText="Action" SortExpression="Action"
                            meta:resourcekey="CheckBoxFieldResource5" Visible="False">
                            <ItemStyle Width="4%" />
                        </asp:CheckBoxField>
                        <asp:BoundField DataField="ACMEDueDate" HeaderText="MyCompany Due Date" SortExpression="ACMEDueDate"
                            DataFormatString="{0:dd/MM/yyyy}" HtmlEncode="False" meta:resourcekey="BoundFieldResource6">
                            <HeaderStyle CssClass="GridHeaderStyle" Wrap="True" />
                            <ItemStyle Width="80px" />
                        </asp:BoundField>
                        <asp:BoundField DataField="AgentDueDate" HeaderText="Agent Due Date" SortExpression="AgentDueDate"
                            DataFormatString="{0:dd/MM/yyyy}" HtmlEncode="False" meta:resourcekey="BoundFieldResource7">
                            <HeaderStyle CssClass="GridHeaderStyle" Wrap="True" />
                            <ItemStyle Width="80px" />
                        </asp:BoundField>
                        <asp:BoundField DataField="CompletionDate" HeaderText="Completion Date" SortExpression="CompletionDate"
                            DataFormatString="{0:dd/MM/yyyy}" HtmlEncode="False" meta:resourcekey="BoundFieldResource8">
                            <HeaderStyle CssClass="GridHeaderStyle" Wrap="True" />
                            <ItemStyle Width="80px" />
                        </asp:BoundField>
                        <asp:BoundField DataField="Status" HeaderText="Status" SortExpression="Status" meta:resourcekey="BoundFieldResource9">
                            <ItemStyle Width="150px" />
                        </asp:BoundField>
                        <asp:BoundField DataField="Remark" HeaderText="Remark" SortExpression="Remark" meta:resourcekey="BoundFieldResource10">
                            <ItemStyle Width="400px" />
                        </asp:BoundField>
                        <asp:BoundField DataField="ResponsibleBy" HeaderText="ResponsibleBy" SortExpression="ResponsibleBy"
                            Visible="False" meta:resourcekey="BoundFieldResource11" />
                        <asp:BoundField DataField="Remark1" HeaderText="Remark1" SortExpression="Remark1"
                            Visible="False" meta:resourcekey="BoundFieldResource12" />
                        <asp:BoundField DataField="Remark2" HeaderText="Remark2" SortExpression="Remark2"
                            Visible="False" meta:resourcekey="BoundFieldResource13" />
                        <asp:BoundField DataField="Remark3" HeaderText="Remark3" SortExpression="Remark3"
                            Visible="False" meta:resourcekey="BoundFieldResource14" />
                        <asp:BoundField DataField="Remark4" HeaderText="Remark4" SortExpression="Remark4"
                            Visible="False" meta:resourcekey="BoundFieldResource15" />
                        <asp:BoundField DataField="Remark5" HeaderText="Remark5" SortExpression="Remark5"
                            Visible="False" meta:resourcekey="BoundFieldResource16" />
                        <asp:BoundField DataField="DateFld1" HeaderText="DateFld1" SortExpression="DateFld1"
                            Visible="False" DataFormatString="{0:dd/MM/yyyy}" HtmlEncode="False" meta:resourcekey="BoundFieldResource17">
                            <HeaderStyle CssClass="GridHeaderStyle" Width="8%" Wrap="False" />
                        </asp:BoundField>
                        <asp:BoundField DataField="DateFld2" HeaderText="DateFld2" SortExpression="DateFld2"
                            Visible="False" DataFormatString="{0:dd/MM/yyyy}" HtmlEncode="False" meta:resourcekey="BoundFieldResource18">
                            <HeaderStyle CssClass="GridHeaderStyle" Width="8%" Wrap="False" />
                        </asp:BoundField>
                        <asp:BoundField DataField="DateFld3" HeaderText="DateFld3" SortExpression="DateFld3"
                            Visible="False" DataFormatString="{0:dd/MM/yyyy}" HtmlEncode="False" meta:resourcekey="BoundFieldResource19">
                            <HeaderStyle CssClass="GridHeaderStyle" Width="8%" Wrap="False" />
                        </asp:BoundField>
                        <asp:BoundField DataField="DateFld4" HeaderText="DateFld4" SortExpression="DateFld4"
                            Visible="False" DataFormatString="{0:dd/MM/yyyy}" HtmlEncode="False" meta:resourcekey="BoundFieldResource20">
                            <HeaderStyle CssClass="GridHeaderStyle" Width="8%" Wrap="False" />
                        </asp:BoundField>
                        <asp:BoundField DataField="DateFld5" HeaderText="DateFld5" SortExpression="DateFld5"
                            Visible="False" DataFormatString="{0:dd/MM/yyyy}" HtmlEncode="False" meta:resourcekey="BoundFieldResource21">
                            <HeaderStyle CssClass="GridHeaderStyle" Width="8%" Wrap="False" />
                        </asp:BoundField>
                        <asp:BoundField DataField="DeciFld1" HeaderText="DeciFld1" SortExpression="DeciFld1"
                            Visible="False" meta:resourcekey="BoundFieldResource22" />
                        <asp:BoundField DataField="DeciFld2" HeaderText="DeciFld2" SortExpression="DeciFld2"
                            Visible="False" meta:resourcekey="BoundFieldResource23" />
                        <asp:BoundField DataField="CreateBy" HeaderText="CreateBy" SortExpression="CreateBy"
                            Visible="False" meta:resourcekey="BoundFieldResource24" />
                        <asp:BoundField DataField="CreateDate" HeaderText="CreateDate" SortExpression="CreateDate"
                            Visible="False" DataFormatString="{0:dd/MM/yyyy}" HtmlEncode="False" meta:resourcekey="BoundFieldResource25">
                            <HeaderStyle CssClass="GridHeaderStyle" Width="8%" Wrap="False" />
                        </asp:BoundField>
                        <asp:BoundField DataField="UpdateBy" HeaderText="UpdateBy" SortExpression="UpdateBy"
                            Visible="False" meta:resourcekey="BoundFieldResource26" />
                        <asp:BoundField DataField="UpdateDate" HeaderText="UpdateDate" SortExpression="UpdateDate"
                            Visible="False" DataFormatString="{0:dd/MM/yyyy}" HtmlEncode="False" meta:resourcekey="BoundFieldResource27">
                            <HeaderStyle CssClass="GridHeaderStyle" Width="8%" Wrap="False" />
                        </asp:BoundField>
                        <asp:BoundField DataField="OwnerGroupID" HeaderText="OwnerGroupID" SortExpression="OwnerGroupID"
                            Visible="False" meta:resourcekey="BoundFieldResource28" />
                        <asp:TemplateField HeaderText="Delete" meta:resourcekey="TemplateFieldResource1">
                            <ItemStyle HorizontalAlign="Center" Width="60px" />
                            <ItemTemplate>
                                <asp:ImageButton ID="ibDeleteSection1" CommandArgument='<%# (Container as GridViewRow).RowIndex %>' runat="server" ImageUrl="~/Images/icon-delete.jpg" 
                                    OnClick="ibDeleteSection2"
                                    
                                    meta:resourcekey="ibDeleteSection1Resource1" />
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="IsLastProgress" Visible="False" meta:resourcekey="TemplateFieldResource2">
                            <ItemTemplate>
                                <asp:CheckBox ID="chkIsLastProgress" runat="server" Checked='<%# Bind("IsLastProgress") %>'
                                    meta:resourcekey="chkIsLastProgressResource1" />
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:BoundField DataField="FromTemplateYN" HeaderText="FromTemplateYN" SortExpression="FromTemplateYN"
                            Visible="False" meta:resourcekey="BoundFieldResource32" />
                        <asp:BoundField DataField="Overdue" ShowHeader="False" />
                    </Columns>
                    <RowStyle CssClass="GridRowStyle"/>
                <AlternatingRowStyle CssClass="GridAltRowStyle"/>
                <SelectedRowStyle CssClass="GridSelectedRowStyle"/>
                <PagerStyle CssClass="GridPagerStyle" ForeColor="White"/>
                <HeaderStyle CssClass="GridHeaderStyle" ForeColor="White" />
                </asp:GridView>
            </asp:Panel>
            <asp:Panel ID="PanelSection3" runat="server" Height="50px" Width="700px" Visible="False" meta:resourcekey="PanelSection3Resource1">
                <table width="700px" style="background-color: #00BFFF; color: Black; border-width: medium;
                    border-color: Black">
                    <tr>
                        <td style="width: 200px">
                            &nbsp;<asp:Label ID="lblSection3" runat="server" Text="Section III"
                                Font-Bold="True" meta:resourcekey="lblSection4" Font-Names="Tahoma,Verdana,Helvetica,Helvetica-Narrow,sans-serif"
                                Font-Size="Small" Width="100%"></asp:Label></td>
                        <td style="width: 266px; text-align: center;">
                            <asp:Button ID="btnAddSection3" runat="server" Text="Add" CssClass="submit" OnClick="btnAddSection3_Click"
                                meta:resourcekey="btnAddSection4" /><asp:Button ID="btnModifySection3" runat="server"
                                    Text="Edit" CssClass="submit" meta:resourcekey="btnModifySection4" OnClick="btnModifySection3_Click" />&nbsp;</td>
                        <td style="vertical-align: top; width: 150px; text-align: right">
                            <asp:Label ID="Label3" runat="server" Text="Procedure Template" Width="100%" meta:resourcekey="Label3Resource1"></asp:Label></td>
                        <td style="vertical-align: top; text-align: left; width: 149px;">
                            <asp:ObjectDataSource ID="ODSHdgTmpltSec3" runat="server" DeleteMethod="Delete" InsertMethod="Insert"
                                OldValuesParameterFormatString="original_{0}" SelectMethod="GetHeadingTemplateBySection"
                                TypeName="IPTableAdapters.HeadingTemplateTableAdapter" UpdateMethod="Update">
                                <DeleteParameters>
                                    <asp:Parameter Name="HeadingCode" Type="String" />
                                    <asp:Parameter Name="Section" Type="Int32" />
                                </DeleteParameters>
                                <UpdateParameters>
                                    <asp:Parameter Name="HeadingName" Type="String" />
                                    <asp:Parameter Name="HeadingNameChinese" Type="String" />
                                    <asp:Parameter Name="HeadingDescription" Type="String" />
                                    <asp:Parameter Name="CreateBy" Type="String" />
                                    <asp:Parameter Name="UpdateBy" Type="String" />
                                    <asp:Parameter Name="OwnerGroupID" Type="String" />
                                    <asp:Parameter Name="HeadingCode" Type="String" />
                                    <asp:Parameter Name="Section" Type="Int32" />
                                </UpdateParameters>
                                <SelectParameters>
                                    <asp:Parameter DefaultValue="3" Name="Section" Type="Int32" />
                                </SelectParameters>
                                <InsertParameters>
                                    <asp:Parameter Name="HeadingCode" Type="String" />
                                    <asp:Parameter Name="HeadingName" Type="String" />
                                    <asp:Parameter Name="HeadingNameChinese" Type="String" />
                                    <asp:Parameter Name="HeadingDescription" Type="String" />
                                    <asp:Parameter Name="Section" Type="Int32" />
                                    <asp:Parameter Name="CreateBy" Type="String" />
                                    <asp:Parameter Name="UpdateBy" Type="String" />
                                    <asp:Parameter Name="OwnerGroupID" Type="String" />
                                </InsertParameters>
                            </asp:ObjectDataSource>
                            <asp:DropDownList ID="ddlHdgTmpltSec3" runat="server" 
                                AutoPostBack="True" 
                                Width="212px" OnSelectedIndexChanged="ddlHdgTmpltSec3_SelectedIndexChanged" meta:resourcekey="ddlHdgTmpltSec3Resource1"
                                OnPreRender="ddlHdgTmpltSec3_PreRender">
                            </asp:DropDownList></td>
                    </tr>
                </table>
                <asp:ObjectDataSource ID="ODSHeaderInfoSect3" runat="server" SelectMethod="GetHeaderInfoByProjectCodeBySection"
                    TypeName="IPTableAdapters.ProjectHeadingTableAdapter" DeleteMethod="Delete" InsertMethod="Insert"
                    UpdateMethod="Update" OldValuesParameterFormatString="original_{0}">
                    <SelectParameters>
                        <asp:SessionParameter Name="AlertDay" SessionField="AlertDay" Type="Int32" />
                        <asp:QueryStringParameter DefaultValue="x" Name="ProjectCode" QueryStringField="pc"
                            Type="String" />
                        <asp:Parameter DefaultValue="3" Name="Section" Type="Int32" />
                    </SelectParameters>
                    <DeleteParameters>
                        <asp:Parameter Name="Original_RowPointer" Type="String" />
                    </DeleteParameters>
                    <UpdateParameters>
                        <asp:Parameter Name="HeadingName" Type="String" />
                        <asp:Parameter Name="Section" Type="Int32" />
                        <asp:Parameter Name="DocumentNumber" Type="String" />
                        <asp:Parameter Name="Status" Type="String" />
                        <asp:Parameter Name="Remark" Type="String" />
                        <asp:Parameter Name="ACMEDueDate" Type="DateTime" />
                        <asp:Parameter Name="AgentDueDate" Type="DateTime" />
                        <asp:Parameter Name="CompletionDate" Type="DateTime" />
                        <asp:Parameter Name="ResponsibleBy" Type="String" />
                        <asp:Parameter Name="Remark1" Type="String" />
                        <asp:Parameter Name="Remark2" Type="String" />
                        <asp:Parameter Name="Remark3" Type="String" />
                        <asp:Parameter Name="Remark4" Type="String" />
                        <asp:Parameter Name="Remark5" Type="String" />
                        <asp:Parameter Name="DateFld1" Type="DateTime" />
                        <asp:Parameter Name="DateFld2" Type="DateTime" />
                        <asp:Parameter Name="DateFld3" Type="DateTime" />
                        <asp:Parameter Name="DateFld4" Type="DateTime" />
                        <asp:Parameter Name="DateFld5" Type="DateTime" />
                        <asp:Parameter Name="DeciFld1" Type="Decimal" />
                        <asp:Parameter Name="DeciFld2" Type="Decimal" />
                        <asp:Parameter Name="UpdateBy" Type="String" />
                        <asp:Parameter Name="Sequence" Type="String" />
                        <asp:Parameter Name="Original_RowPointer" Type="Object" />
                    </UpdateParameters>
                    <InsertParameters>
                        <asp:Parameter Name="ProjectCode" Type="String" />
                        <asp:Parameter Name="HeadingCode" Type="String" />
                        <asp:Parameter Name="HeadingName" Type="String" />
                        <asp:Parameter Name="Section" Type="Int32" />
                        <asp:Parameter Name="DocumentNumber" Type="String" />
                        <asp:Parameter Name="Status" Type="String" />
                        <asp:Parameter Name="Remark" Type="String" />
                        <asp:Parameter Name="ACMEDueDate" Type="DateTime" />
                        <asp:Parameter Name="AgentDueDate" Type="DateTime" />
                        <asp:Parameter Name="CompletionDate" Type="DateTime" />
                        <asp:Parameter Name="ResponsibleBy" Type="String" />
                        <asp:Parameter Name="Remark1" Type="String" />
                        <asp:Parameter Name="Remark2" Type="String" />
                        <asp:Parameter Name="Remark3" Type="String" />
                        <asp:Parameter Name="Remark4" Type="String" />
                        <asp:Parameter Name="Remark5" Type="String" />
                        <asp:Parameter Name="DateFld1" Type="DateTime" />
                        <asp:Parameter Name="DateFld2" Type="DateTime" />
                        <asp:Parameter Name="DateFld3" Type="DateTime" />
                        <asp:Parameter Name="DateFld4" Type="DateTime" />
                        <asp:Parameter Name="DateFld5" Type="DateTime" />
                        <asp:Parameter Name="DeciFld1" Type="Decimal" />
                        <asp:Parameter Name="DeciFld2" Type="Decimal" />
                        <asp:Parameter Name="CreateBy" Type="String" />
                        <asp:Parameter Name="UpdateBy" Type="String" />
                        <asp:Parameter Name="OwnerGroupID" Type="String" />
                        <asp:Parameter Name="FromTemplateYN" Type="Boolean" />
                        <asp:Parameter Name="Sequence" Type="Int32" />
                    </InsertParameters>
                </asp:ObjectDataSource>
                <asp:GridView CssClass="Grid" ID="GridViewHeaderInfoSect3" runat="server" CellPadding="3"
                    BorderStyle="None" BorderWidth="1px" AutoGenerateColumns="False" BackColor="#DEBA84"
                    BorderColor="#DEBA84" CellSpacing="2" DataKeyNames="ProjectCode,HeadingCode,HeadingName,Section,Action,DocumentNumber,Status,Remark,ACMEDueDate,AgentDueDate,CompletionDate,ResponsibleBy,Remark1,Remark2,Remark3,Remark4,Remark5,DateFld1,DateFld2,DateFld3,DateFld4,DateFld5,DeciFld1,DeciFld2,CreateBy,UpdateBy,OwnerGroupID,FromTemplateYN,Sequence,RowPointer"
                    DataSourceID="ODSHeaderInfoSect3" Width="700px" Height="1px" Font-Names="Tahoma,Verdana,Helvetica,Helvetica-Narrow,sans-serif"
                    Font-Size="Small" EmptyDataText="NIL" OnSelectedIndexChanged="GridViewHeaderInfoSect3_SelectedIndexChanged"
                    meta:resourcekey="GridViewHeaderInfoSect4Resource1" OnRowDataBound="GridViewHeaderInfoSect3_RowDataBound" AllowPaging="True" >
                    <FooterStyle CssClass="GridFooterStyle" BackColor="#F7DFB5" ForeColor="#8C4510" />
                    <AlternatingRowStyle BorderColor="#C0C000" />
                    <Columns>
                        <asp:BoundField DataField="ProjectCode" HeaderText="ProjectCode" ReadOnly="True"
                            Visible="False" SortExpression="ProjectCode" meta:resourcekey="BoundFieldResource1" />
                        <asp:ButtonField CommandName="Select" DataTextField="RowPointer" HeaderText="RowPointer"
                            SortExpression="RowPointer" Visible="False" meta:resourcekey="ButtonFieldResource6" />
                        <asp:ButtonField CommandName="Select" DataTextField="Sequence" HeaderText="Sequence"
                            SortExpression="Sequence" Text="Button" meta:resourcekey="ButtonFieldResource7" />
                        <asp:BoundField DataField="Sequence" HeaderText="Sequence" SortExpression="Sequence"
                            Visible="False" meta:resourcekey="BoundFieldResource33">
                            <ItemStyle Width="80px" />
                        </asp:BoundField>
                        <asp:BoundField DataField="HeadingCode" HeaderText="Procedure Code" ReadOnly="True"
                            SortExpression="HeadingCode" meta:resourcekey="BoundFieldResource2">
                            <ItemStyle Width="150px" />
                            <HeaderStyle CssClass="GridHeaderStyle" Wrap="False" />
                        </asp:BoundField>
                        <asp:BoundField DataField="HeadingName" HeaderText="Procedure Name" SortExpression="HeadingName"
                            meta:resourcekey="BoundFieldResource3">
                            <ItemStyle Wrap="False" Width="250px" />
                        </asp:BoundField>
                        <asp:BoundField DataField="DocumentNumber" HeaderText="Document Number" SortExpression="DocumentNumber"
                            Visible="False" meta:resourcekey="BoundFieldResource4">
                            <ItemStyle Width="6%" />
                        </asp:BoundField>
                        <asp:BoundField DataField="Section" HeaderText="Section" SortExpression="Section"
                            Visible="False" meta:resourcekey="BoundFieldResource5" />
                        <asp:CheckBoxField DataField="Action" HeaderText="Action" SortExpression="Action"
                            meta:resourcekey="CheckBoxFieldResource5" Visible="False">
                            <ItemStyle Width="4%" />
                        </asp:CheckBoxField>
                        <asp:BoundField DataField="ACMEDueDate" HeaderText="MyCompany Due Date" SortExpression="ACMEDueDate"
                            DataFormatString="{0:dd/MM/yyyy}" HtmlEncode="False" meta:resourcekey="BoundFieldResource6">
                            <HeaderStyle CssClass="GridHeaderStyle" Wrap="True" />
                            <ItemStyle Width="80px" />
                        </asp:BoundField>
                        <asp:BoundField DataField="AgentDueDate" HeaderText="Agent Due Date" SortExpression="AgentDueDate"
                            DataFormatString="{0:dd/MM/yyyy}" HtmlEncode="False" meta:resourcekey="BoundFieldResource7">
                            <HeaderStyle CssClass="GridHeaderStyle" Wrap="True" />
                            <ItemStyle Width="80px" />
                        </asp:BoundField>
                        <asp:BoundField DataField="CompletionDate" HeaderText="Completion Date" SortExpression="CompletionDate"
                            DataFormatString="{0:dd/MM/yyyy}" HtmlEncode="False" meta:resourcekey="BoundFieldResource8">
                            <HeaderStyle CssClass="GridHeaderStyle" Wrap="True" />
                            <ItemStyle Width="80px" />
                        </asp:BoundField>
                        <asp:BoundField DataField="Status" HeaderText="Status" SortExpression="Status" meta:resourcekey="BoundFieldResource9">
                            <ItemStyle Width="150px" />
                        </asp:BoundField>
                        <asp:BoundField DataField="Remark" HeaderText="Remark" SortExpression="Remark" meta:resourcekey="BoundFieldResource10">
                            <ItemStyle Width="400px" />
                        </asp:BoundField>
                        <asp:BoundField DataField="ResponsibleBy" HeaderText="ResponsibleBy" SortExpression="ResponsibleBy"
                            Visible="False" meta:resourcekey="BoundFieldResource11" />
                        <asp:BoundField DataField="Remark1" HeaderText="Remark1" SortExpression="Remark1"
                            Visible="False" meta:resourcekey="BoundFieldResource12" />
                        <asp:BoundField DataField="Remark2" HeaderText="Remark2" SortExpression="Remark2"
                            Visible="False" meta:resourcekey="BoundFieldResource13" />
                        <asp:BoundField DataField="Remark3" HeaderText="Remark3" SortExpression="Remark3"
                            Visible="False" meta:resourcekey="BoundFieldResource14" />
                        <asp:BoundField DataField="Remark4" HeaderText="Remark4" SortExpression="Remark4"
                            Visible="False" meta:resourcekey="BoundFieldResource15" />
                        <asp:BoundField DataField="Remark5" HeaderText="Remark5" SortExpression="Remark5"
                            Visible="False" meta:resourcekey="BoundFieldResource16" />
                        <asp:BoundField DataField="DateFld1" HeaderText="DateFld1" SortExpression="DateFld1"
                            Visible="False" DataFormatString="{0:dd/MM/yyyy}" HtmlEncode="False" meta:resourcekey="BoundFieldResource17">
                            <HeaderStyle CssClass="GridHeaderStyle" Width="8%" Wrap="False" />
                        </asp:BoundField>
                        <asp:BoundField DataField="DateFld2" HeaderText="DateFld2" SortExpression="DateFld2"
                            Visible="False" DataFormatString="{0:dd/MM/yyyy}" HtmlEncode="False" meta:resourcekey="BoundFieldResource18">
                            <HeaderStyle CssClass="GridHeaderStyle" Width="8%" Wrap="False" />
                        </asp:BoundField>
                        <asp:BoundField DataField="DateFld3" HeaderText="DateFld3" SortExpression="DateFld3"
                            Visible="False" DataFormatString="{0:dd/MM/yyyy}" HtmlEncode="False" meta:resourcekey="BoundFieldResource19">
                            <HeaderStyle CssClass="GridHeaderStyle" Width="8%" Wrap="False" />
                        </asp:BoundField>
                        <asp:BoundField DataField="DateFld4" HeaderText="DateFld4" SortExpression="DateFld4"
                            Visible="False" DataFormatString="{0:dd/MM/yyyy}" HtmlEncode="False" meta:resourcekey="BoundFieldResource20">
                            <HeaderStyle CssClass="GridHeaderStyle" Width="8%" Wrap="False" />
                        </asp:BoundField>
                        <asp:BoundField DataField="DateFld5" HeaderText="DateFld5" SortExpression="DateFld5"
                            Visible="False" DataFormatString="{0:dd/MM/yyyy}" HtmlEncode="False" meta:resourcekey="BoundFieldResource21">
                            <HeaderStyle CssClass="GridHeaderStyle" Width="8%" Wrap="False" />
                        </asp:BoundField>
                        <asp:BoundField DataField="DeciFld1" HeaderText="DeciFld1" SortExpression="DeciFld1"
                            Visible="False" meta:resourcekey="BoundFieldResource22" />
                        <asp:BoundField DataField="DeciFld2" HeaderText="DeciFld2" SortExpression="DeciFld2"
                            Visible="False" meta:resourcekey="BoundFieldResource23" />
                        <asp:BoundField DataField="CreateBy" HeaderText="CreateBy" SortExpression="CreateBy"
                            Visible="False" meta:resourcekey="BoundFieldResource24" />
                        <asp:BoundField DataField="CreateDate" HeaderText="CreateDate" SortExpression="CreateDate"
                            Visible="False" DataFormatString="{0:dd/MM/yyyy}" HtmlEncode="False" meta:resourcekey="BoundFieldResource25">
                            <HeaderStyle CssClass="GridHeaderStyle" Width="8%" Wrap="False" />
                        </asp:BoundField>
                        <asp:BoundField DataField="UpdateBy" HeaderText="UpdateBy" SortExpression="UpdateBy"
                            Visible="False" meta:resourcekey="BoundFieldResource26" />
                        <asp:BoundField DataField="UpdateDate" HeaderText="UpdateDate" SortExpression="UpdateDate"
                            Visible="False" DataFormatString="{0:dd/MM/yyyy}" HtmlEncode="False" meta:resourcekey="BoundFieldResource27">
                            <HeaderStyle CssClass="GridHeaderStyle" Width="8%" Wrap="False" />
                        </asp:BoundField>
                        <asp:BoundField DataField="OwnerGroupID" HeaderText="OwnerGroupID" SortExpression="OwnerGroupID"
                            Visible="False" meta:resourcekey="BoundFieldResource28" />
                        <asp:TemplateField HeaderText="Delete" meta:resourcekey="TemplateFieldResource1">
                            <ItemStyle HorizontalAlign="Center" Width="60px" />
                            <ItemTemplate>
                                <asp:ImageButton ID="ibDeleteSection1" CommandArgument='<%# (Container as GridViewRow).RowIndex %>' runat="server" ImageUrl="~/Images/icon-delete.jpg" 
                                    OnClick="ibDeleteSection3"
                                    meta:resourcekey="ibDeleteSection1Resource1" ImageAlign="Left" />
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="IsLastProgress" Visible="False" meta:resourcekey="TemplateFieldResource2">
                            <ItemTemplate>
                                <asp:CheckBox ID="chkIsLastProgress" runat="server" Checked='<%# Bind("IsLastProgress") %>'
                                    meta:resourcekey="chkIsLastProgressResource1" />
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:BoundField DataField="FromTemplateYN" HeaderText="FromTemplateYN" SortExpression="FromTemplateYN"
                            Visible="False" meta:resourcekey="BoundFieldResource34" />
                        <asp:BoundField DataField="Overdue" ShowHeader="False" />
                    </Columns>
                    <RowStyle CssClass="GridRowStyle"/>
                <AlternatingRowStyle CssClass="GridAltRowStyle"/>
                <SelectedRowStyle CssClass="GridSelectedRowStyle"/>
                <PagerStyle CssClass="GridPagerStyle" ForeColor="White"/>
                <HeaderStyle CssClass="GridHeaderStyle" ForeColor="White" />
                </asp:GridView>
            </asp:Panel>
            <asp:Panel ID="PanelSection4" runat="server" Height="1px" Width="700px" Visible="False" meta:resourcekey="PanelSection4Resource1">
                <table width="100%" style="background-color: #00BFFF; color: Black; border-width: medium;
                    border-color: Black">
                    <tr>
                        <td style="width: 200px">
                            <asp:Label ID="lblSection4" runat="server" Text="Section IV" Font-Bold="True"
                                meta:resourcekey="lblSection5" Font-Names="Tahoma,Verdana,Helvetica,Helvetica-Narrow,sans-serif"
                                Font-Size="Small" Width="100%"></asp:Label></td>
                        <td style="width: 266px; text-align: center;">
                            <asp:Button ID="btnAddSection4" runat="server" Text="Add" CssClass="submit" OnClick="btnAddSection4_Click"
                                meta:resourcekey="btnAddSection5" /><asp:Button ID="btnModifySection4" runat="server"
                                    Text="Edit" CssClass="submit" meta:resourcekey="btnModifySection5" OnClick="btnModifySection4_Click" />&nbsp;</td>
                        <td style="vertical-align: top; width: 150px; text-align: right">
                            <asp:Label ID="Label4" runat="server" Text="Procedure Template" Width="100%" meta:resourcekey="Label4Resource1"></asp:Label></td>
                        <td style="vertical-align: top; text-align: left; width: 149px;">
                            <asp:ObjectDataSource ID="ODSHdgTmpltSec4" runat="server" DeleteMethod="Delete" InsertMethod="Insert"
                                OldValuesParameterFormatString="original_{0}" SelectMethod="GetHeadingTemplateBySection"
                                TypeName="IPTableAdapters.HeadingTemplateTableAdapter" UpdateMethod="Update">
                                <DeleteParameters>
                                    <asp:Parameter Name="HeadingCode" Type="String" />
                                    <asp:Parameter Name="Section" Type="Int32" />
                                </DeleteParameters>
                                <UpdateParameters>
                                    <asp:Parameter Name="HeadingName" Type="String" />
                                    <asp:Parameter Name="HeadingNameChinese" Type="String" />
                                    <asp:Parameter Name="HeadingDescription" Type="String" />
                                    <asp:Parameter Name="CreateBy" Type="String" />
                                    <asp:Parameter Name="UpdateBy" Type="String" />
                                    <asp:Parameter Name="OwnerGroupID" Type="String" />
                                    <asp:Parameter Name="HeadingCode" Type="String" />
                                    <asp:Parameter Name="Section" Type="Int32" />
                                </UpdateParameters>
                                <SelectParameters>
                                    <asp:Parameter DefaultValue="4" Name="Section" Type="Int32" />
                                </SelectParameters>
                                <InsertParameters>
                                    <asp:Parameter Name="HeadingCode" Type="String" />
                                    <asp:Parameter Name="HeadingName" Type="String" />
                                    <asp:Parameter Name="HeadingNameChinese" Type="String" />
                                    <asp:Parameter Name="HeadingDescription" Type="String" />
                                    <asp:Parameter Name="Section" Type="Int32" />
                                    <asp:Parameter Name="CreateBy" Type="String" />
                                    <asp:Parameter Name="UpdateBy" Type="String" />
                                    <asp:Parameter Name="OwnerGroupID" Type="String" />
                                </InsertParameters>
                            </asp:ObjectDataSource>
                            <asp:DropDownList ID="ddlHdgTmpltSec4" runat="server" 
                                AutoPostBack="True" 
                                Width="212px" OnSelectedIndexChanged="ddlHdgTmpltSec4_SelectedIndexChanged" meta:resourcekey="ddlHdgTmpltSec4Resource1"
                                OnPreRender="ddlHdgTmpltSec4_PreRender">
                            </asp:DropDownList></td>
                    </tr>
                </table>
                <asp:ObjectDataSource ID="ODSHeaderInfoSect4" runat="server" SelectMethod="GetHeaderInfoByProjectCodeBySection"
                    TypeName="IPTableAdapters.ProjectHeadingTableAdapter" DeleteMethod="Delete" InsertMethod="Insert"
                    UpdateMethod="Update" OldValuesParameterFormatString="original_{0}">
                    <SelectParameters>
                        <asp:SessionParameter DefaultValue="0" Name="AlertDay" SessionField="AlertDay" Type="Int32" />
                        <asp:QueryStringParameter DefaultValue="x" Name="ProjectCode" QueryStringField="pc"
                            Type="String" />
                        <asp:Parameter DefaultValue="4" Name="Section" Type="Int32" />
                    </SelectParameters>
                    <DeleteParameters>
                        <asp:Parameter Name="Original_RowPointer" Type="String" />
                    </DeleteParameters>
                    <UpdateParameters>
                        <asp:Parameter Name="HeadingName" Type="String" />
                        <asp:Parameter Name="Section" Type="Int32" />
                        <asp:Parameter Name="DocumentNumber" Type="String" />
                        <asp:Parameter Name="Status" Type="String" />
                        <asp:Parameter Name="Remark" Type="String" />
                        <asp:Parameter Name="ACMEDueDate" Type="DateTime" />
                        <asp:Parameter Name="AgentDueDate" Type="DateTime" />
                        <asp:Parameter Name="CompletionDate" Type="DateTime" />
                        <asp:Parameter Name="ResponsibleBy" Type="String" />
                        <asp:Parameter Name="Remark1" Type="String" />
                        <asp:Parameter Name="Remark2" Type="String" />
                        <asp:Parameter Name="Remark3" Type="String" />
                        <asp:Parameter Name="Remark4" Type="String" />
                        <asp:Parameter Name="Remark5" Type="String" />
                        <asp:Parameter Name="DateFld1" Type="DateTime" />
                        <asp:Parameter Name="DateFld2" Type="DateTime" />
                        <asp:Parameter Name="DateFld3" Type="DateTime" />
                        <asp:Parameter Name="DateFld4" Type="DateTime" />
                        <asp:Parameter Name="DateFld5" Type="DateTime" />
                        <asp:Parameter Name="DeciFld1" Type="Decimal" />
                        <asp:Parameter Name="DeciFld2" Type="Decimal" />
                        <asp:Parameter Name="UpdateBy" Type="String" />
                        <asp:Parameter Name="Sequence" Type="String" />
                        <asp:Parameter Name="Original_RowPointer" Type="Object" />
                    </UpdateParameters>
                    <InsertParameters>
                        <asp:Parameter Name="ProjectCode" Type="String" />
                        <asp:Parameter Name="HeadingCode" Type="String" />
                        <asp:Parameter Name="HeadingName" Type="String" />
                        <asp:Parameter Name="Section" Type="Int32" />
                        <asp:Parameter Name="DocumentNumber" Type="String" />
                        <asp:Parameter Name="Status" Type="String" />
                        <asp:Parameter Name="Remark" Type="String" />
                        <asp:Parameter Name="ACMEDueDate" Type="DateTime" />
                        <asp:Parameter Name="AgentDueDate" Type="DateTime" />
                        <asp:Parameter Name="CompletionDate" Type="DateTime" />
                        <asp:Parameter Name="ResponsibleBy" Type="String" />
                        <asp:Parameter Name="Remark1" Type="String" />
                        <asp:Parameter Name="Remark2" Type="String" />
                        <asp:Parameter Name="Remark3" Type="String" />
                        <asp:Parameter Name="Remark4" Type="String" />
                        <asp:Parameter Name="Remark5" Type="String" />
                        <asp:Parameter Name="DateFld1" Type="DateTime" />
                        <asp:Parameter Name="DateFld2" Type="DateTime" />
                        <asp:Parameter Name="DateFld3" Type="DateTime" />
                        <asp:Parameter Name="DateFld4" Type="DateTime" />
                        <asp:Parameter Name="DateFld5" Type="DateTime" />
                        <asp:Parameter Name="DeciFld1" Type="Decimal" />
                        <asp:Parameter Name="DeciFld2" Type="Decimal" />
                        <asp:Parameter Name="CreateBy" Type="String" />
                        <asp:Parameter Name="UpdateBy" Type="String" />
                        <asp:Parameter Name="OwnerGroupID" Type="String" />
                        <asp:Parameter Name="FromTemplateYN" Type="Boolean" />
                        <asp:Parameter Name="Sequence" Type="Int32" />
                    </InsertParameters>
                </asp:ObjectDataSource>
                <asp:GridView CssClass="Grid" ID="GridViewHeaderInfoSect4" runat="server" CellPadding="3"
                    BorderStyle="None" BorderWidth="1px" AutoGenerateColumns="False" BackColor="#DEBA84"
                    BorderColor="#DEBA84" CellSpacing="2" DataKeyNames="ProjectCode,HeadingCode,HeadingName,Section,Action,DocumentNumber,Status,Remark,ACMEDueDate,AgentDueDate,CompletionDate,ResponsibleBy,Remark1,Remark2,Remark3,Remark4,Remark5,DateFld1,DateFld2,DateFld3,DateFld4,DateFld5,DeciFld1,DeciFld2,CreateBy,UpdateBy,OwnerGroupID,FromTemplateYN,Sequence,RowPointer"
                    DataSourceID="ODSHeaderInfoSect4" Width="700px" Height="1px" Font-Names="Tahoma,Verdana,Helvetica,Helvetica-Narrow,sans-serif"
                    Font-Size="Small" EmptyDataText="NIL" OnSelectedIndexChanged="GridViewHeaderInfoSect4_SelectedIndexChanged"
                    meta:resourcekey="GridViewHeaderInfoSect5Resource1" OnRowDataBound="GridViewHeaderInfoSect4_RowDataBound" AllowPaging="True" >
                    <FooterStyle CssClass="GridFooterStyle" BackColor="#F7DFB5" ForeColor="#8C4510" />
                    <AlternatingRowStyle BorderColor="#C0C000" />
                    <Columns>
                        <asp:BoundField DataField="ProjectCode" HeaderText="ProjectCode" ReadOnly="True"
                            Visible="False" SortExpression="ProjectCode" meta:resourcekey="BoundFieldResource1" />
                        <asp:ButtonField CommandName="Select" DataTextField="RowPointer" HeaderText="RowPointer"
                            SortExpression="RowPointer" Visible="False" meta:resourcekey="ButtonFieldResource8" />
                        <asp:ButtonField CommandName="Select" DataTextField="Sequence" HeaderText="Sequence"
                            SortExpression="Sequence" Text="Button" meta:resourcekey="ButtonFieldResource9" />
                        <asp:BoundField DataField="Sequence" HeaderText="Sequence" SortExpression="Sequence"
                            Visible="False" meta:resourcekey="BoundFieldResource35">
                            <ItemStyle Width="80px" />
                        </asp:BoundField>
                        <asp:BoundField DataField="HeadingCode" HeaderText="Procedure Code" ReadOnly="True"
                            SortExpression="HeadingCode" meta:resourcekey="BoundFieldResource2">
                            <ItemStyle Width="150px" />
                            <HeaderStyle CssClass="GridHeaderStyle" Wrap="False" />
                        </asp:BoundField>
                        <asp:BoundField DataField="HeadingName" HeaderText="Procedure Name" SortExpression="HeadingName"
                            meta:resourcekey="BoundFieldResource3">
                            <ItemStyle Wrap="False" Width="250px" />
                        </asp:BoundField>
                        <asp:BoundField DataField="DocumentNumber" HeaderText="Document Number" SortExpression="DocumentNumber"
                            Visible="False" meta:resourcekey="BoundFieldResource4">
                            <ItemStyle Width="6%" />
                        </asp:BoundField>
                        <asp:BoundField DataField="Section" HeaderText="Section" SortExpression="Section"
                            Visible="False" meta:resourcekey="BoundFieldResource5" />
                        <asp:CheckBoxField DataField="Action" HeaderText="Action" SortExpression="Action"
                            meta:resourcekey="CheckBoxFieldResource5" Visible="False">
                            <ItemStyle Width="4%" />
                        </asp:CheckBoxField>
                        <asp:BoundField DataField="ACMEDueDate" HeaderText="MyCompany Due Date" SortExpression="ACMEDueDate"
                            DataFormatString="{0:dd/MM/yyyy}" HtmlEncode="False" meta:resourcekey="BoundFieldResource6">
                            <HeaderStyle CssClass="GridHeaderStyle" Wrap="True" />
                            <ItemStyle Width="80px" />
                        </asp:BoundField>
                        <asp:BoundField DataField="AgentDueDate" HeaderText="Agent Due Date" SortExpression="AgentDueDate"
                            DataFormatString="{0:dd/MM/yyyy}" HtmlEncode="False" meta:resourcekey="BoundFieldResource7">
                            <HeaderStyle CssClass="GridHeaderStyle" Wrap="True" />
                            <ItemStyle Width="80px" />
                        </asp:BoundField>
                        <asp:BoundField DataField="CompletionDate" HeaderText="Completion Date" SortExpression="CompletionDate"
                            DataFormatString="{0:dd/MM/yyyy}" HtmlEncode="False" meta:resourcekey="BoundFieldResource8">
                            <HeaderStyle CssClass="GridHeaderStyle" Wrap="True" />
                            <ItemStyle Width="80px" />
                        </asp:BoundField>
                        <asp:BoundField DataField="Status" HeaderText="Status" SortExpression="Status" meta:resourcekey="BoundFieldResource9">
                            <ItemStyle Width="150px" />
                        </asp:BoundField>
                        <asp:BoundField DataField="Remark" HeaderText="Remark" SortExpression="Remark" meta:resourcekey="BoundFieldResource10">
                            <ItemStyle Width="400px" />
                        </asp:BoundField>
                        <asp:BoundField DataField="ResponsibleBy" HeaderText="ResponsibleBy" SortExpression="ResponsibleBy"
                            Visible="False" meta:resourcekey="BoundFieldResource11" />
                        <asp:BoundField DataField="Remark1" HeaderText="Remark1" SortExpression="Remark1"
                            Visible="False" meta:resourcekey="BoundFieldResource12" />
                        <asp:BoundField DataField="Remark2" HeaderText="Remark2" SortExpression="Remark2"
                            Visible="False" meta:resourcekey="BoundFieldResource13" />
                        <asp:BoundField DataField="Remark3" HeaderText="Remark3" SortExpression="Remark3"
                            Visible="False" meta:resourcekey="BoundFieldResource14" />
                        <asp:BoundField DataField="Remark4" HeaderText="Remark4" SortExpression="Remark4"
                            Visible="False" meta:resourcekey="BoundFieldResource15" />
                        <asp:BoundField DataField="Remark5" HeaderText="Remark5" SortExpression="Remark5"
                            Visible="False" meta:resourcekey="BoundFieldResource16" />
                        <asp:BoundField DataField="DateFld1" HeaderText="DateFld1" SortExpression="DateFld1"
                            Visible="False" DataFormatString="{0:dd/MM/yyyy}" HtmlEncode="False" meta:resourcekey="BoundFieldResource17">
                            <HeaderStyle CssClass="GridHeaderStyle" Width="8%" Wrap="False" />
                        </asp:BoundField>
                        <asp:BoundField DataField="DateFld2" HeaderText="DateFld2" SortExpression="DateFld2"
                            Visible="False" DataFormatString="{0:dd/MM/yyyy}" HtmlEncode="False" meta:resourcekey="BoundFieldResource18">
                            <HeaderStyle CssClass="GridHeaderStyle" Width="8%" Wrap="False" />
                        </asp:BoundField>
                        <asp:BoundField DataField="DateFld3" HeaderText="DateFld3" SortExpression="DateFld3"
                            Visible="False" DataFormatString="{0:dd/MM/yyyy}" HtmlEncode="False" meta:resourcekey="BoundFieldResource19">
                            <HeaderStyle CssClass="GridHeaderStyle" Width="8%" Wrap="False" />
                        </asp:BoundField>
                        <asp:BoundField DataField="DateFld4" HeaderText="DateFld4" SortExpression="DateFld4"
                            Visible="False" DataFormatString="{0:dd/MM/yyyy}" HtmlEncode="False" meta:resourcekey="BoundFieldResource20">
                            <HeaderStyle CssClass="GridHeaderStyle" Width="8%" Wrap="False" />
                        </asp:BoundField>
                        <asp:BoundField DataField="DateFld5" HeaderText="DateFld5" SortExpression="DateFld5"
                            Visible="False" DataFormatString="{0:dd/MM/yyyy}" HtmlEncode="False" meta:resourcekey="BoundFieldResource21">
                            <HeaderStyle CssClass="GridHeaderStyle" Width="8%" Wrap="False" />
                        </asp:BoundField>
                        <asp:BoundField DataField="DeciFld1" HeaderText="DeciFld1" SortExpression="DeciFld1"
                            Visible="False" meta:resourcekey="BoundFieldResource22" />
                        <asp:BoundField DataField="DeciFld2" HeaderText="DeciFld2" SortExpression="DeciFld2"
                            Visible="False" meta:resourcekey="BoundFieldResource23" />
                        <asp:BoundField DataField="CreateBy" HeaderText="CreateBy" SortExpression="CreateBy"
                            Visible="False" meta:resourcekey="BoundFieldResource24" />
                        <asp:BoundField DataField="CreateDate" HeaderText="CreateDate" SortExpression="CreateDate"
                            Visible="False" DataFormatString="{0:dd/MM/yyyy}" HtmlEncode="False" meta:resourcekey="BoundFieldResource25">
                            <HeaderStyle CssClass="GridHeaderStyle" Width="8%" Wrap="False" />
                        </asp:BoundField>
                        <asp:BoundField DataField="UpdateBy" HeaderText="UpdateBy" SortExpression="UpdateBy"
                            Visible="False" meta:resourcekey="BoundFieldResource26" />
                        <asp:BoundField DataField="UpdateDate" HeaderText="UpdateDate" SortExpression="UpdateDate"
                            Visible="False" DataFormatString="{0:dd/MM/yyyy}" HtmlEncode="False" meta:resourcekey="BoundFieldResource27">
                            <HeaderStyle CssClass="GridHeaderStyle" Width="8%" Wrap="False" />
                        </asp:BoundField>
                        <asp:BoundField DataField="OwnerGroupID" HeaderText="OwnerGroupID" SortExpression="OwnerGroupID"
                            Visible="False" meta:resourcekey="BoundFieldResource28" />
                        <asp:TemplateField HeaderText="Delete" meta:resourcekey="TemplateFieldResource1">
                            <ItemStyle HorizontalAlign="Center" Width="60px" />
                            <ItemTemplate>
                                <asp:ImageButton ID="ibDeleteSection1" CommandArgument='<%# (Container as GridViewRow).RowIndex %>' runat="server" ImageUrl="~/Images/icon-delete.jpg" 
                                    OnClick="ibDeleteSection4"
                                    meta:resourcekey="ibDeleteSection1Resource1" />
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="IsLastProgress" Visible="False" meta:resourcekey="TemplateFieldResource2">
                            <ItemTemplate>
                                <asp:CheckBox ID="chkIsLastProgress" runat="server" Checked='<%# Bind("IsLastProgress") %>'
                                    meta:resourcekey="chkIsLastProgressResource1" />
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:BoundField DataField="FromTemplateYN" HeaderText="FromTemplateYN" SortExpression="FromTemplateYN"
                            Visible="False" meta:resourcekey="BoundFieldResource36" />
                        <asp:BoundField DataField="Overdue" ShowHeader="False" />
                    </Columns>
                    <RowStyle CssClass="GridRowStyle"/>
                <AlternatingRowStyle CssClass="GridAltRowStyle"/>
                <SelectedRowStyle CssClass="GridSelectedRowStyle"/>
                <PagerStyle CssClass="GridPagerStyle" ForeColor="White"/>
                <HeaderStyle CssClass="GridHeaderStyle" ForeColor="White" />
                </asp:GridView>
            </asp:Panel>
        </asp:Panel>
        <asp:Panel ID="HeaderDetailsPanel" runat="server" Height="50px" Width="650px" Visible="False"
            meta:resourcekey="HeaderDetailsPanelResource1">
            <table width="100%" style="background-color: #00BFFF; color: Black; border-width: medium;
                border-color: Black; font-size: small; font-family: Tahoma, Verdana, Helvetica, Helvetica-Narrow, sans-serif">
                <tr>
                    <td colspan="7" style="height: 6px">
                        <asp:Label ID="lblHeaderTitle" runat="server" Font-Bold="True" Text="Procedure 1 - "
                            meta:resourcekey="lblHeaderTitle"></asp:Label>
                        <asp:Label ID="lblProjectCde" runat="server" Font-Bold="True" Text="[ProjectCode]"
                            meta:resourcekey="lblProjectCdeResource1"></asp:Label></td>
                </tr>
                <tr>
                    <td style="height: 17px" colspan="7">
                        <asp:Label ID="lblSection" runat="server" Font-Bold="True" Text="Section ID : " meta:resourcekey="lblSection"></asp:Label>
                        <asp:Label ID="lblSelectedSection" runat="server" Font-Bold="True" Text="[SelectedSection]"
                            meta:resourcekey="lblSelectedSectionResource1"></asp:Label></td>
                </tr>
            </table>
            <table style="font-size: small; font-family: Tahoma, Verdana, Helvetica, Helvetica-Narrow, sans-serif;
                width: 700px;">
                <tr>
                    <td style="width: 251px; vertical-align: top; text-align: right;" colspan="">
                        <asp:Label ID="lblHeadingCodeDet" runat="server" Text="Procedure Code" meta:resourcekey="lblHeadingCodeDet"
                            Width="100%"></asp:Label>
                    </td>
                    <td style="width: 268px; vertical-align: top; text-align: left;" colspan="4">
                        <asp:TextBox ID="txtHeadingCodeDet" runat="server" CssClass="required" meta:resourcekey="txtHeadingCodeDetResource1"
                            MaxLength="30"></asp:TextBox><asp:ObjectDataSource ID="ObjectDataSource1" runat="server" DeleteMethod="Delete" InsertMethod="Insert"
                                OldValuesParameterFormatString="original_{0}" SelectMethod="GetHeadingTemplateBySection"
                                TypeName="IPTableAdapters.HeadingTemplateTableAdapter" UpdateMethod="Update">
                                <DeleteParameters>
                                    <asp:Parameter Name="HeadingCode" Type="String" />
                                    <asp:Parameter Name="Section" Type="Int32" />
                                </DeleteParameters>
                                <UpdateParameters>
                                    <asp:Parameter Name="HeadingName" Type="String" />
                                    <asp:Parameter Name="HeadingNameChinese" Type="String" />
                                    <asp:Parameter Name="HeadingDescription" Type="String" />
                                    <asp:Parameter Name="UpdateBy" Type="String" />
                                    <asp:Parameter Name="HeadingCode" Type="String" />
                                    <asp:Parameter Name="Section" Type="Int32" />
                                </UpdateParameters>
                                <SelectParameters>
                                    <asp:SessionParameter DefaultValue="1" Name="Section" SessionField="HeaderInfoSection"
                                        Type="Int32" />
                                </SelectParameters>
                                <InsertParameters>
                                    <asp:Parameter Name="HeadingCode" Type="String" />
                                    <asp:Parameter Name="HeadingName" Type="String" />
                                    <asp:Parameter Name="HeadingNameChinese" Type="String" />
                                    <asp:Parameter Name="HeadingDescription" Type="String" />
                                    <asp:Parameter Name="Section" Type="Int32" />
                                    <asp:Parameter Name="CreateBy" Type="String" />
                                    <asp:Parameter Name="UpdateBy" Type="String" />
                                    <asp:Parameter Name="OwnerGroupID" Type="String" />
                                </InsertParameters>
                            </asp:ObjectDataSource>
                        <asp:DropDownList ID="ddlProcedureCode" runat="server"
                                AutoPostBack="True"
                                Width="212px" meta:resourcekey="ddlHdgTmpltSec1Resource1"
                                 CssClass="required" Visible="False" OnSelectedIndexChanged="ddlProcedureCode_SelectedIndexChanged">
                        </asp:DropDownList><asp:RequiredFieldValidator ID="RequiredFieldValidator1"
                                runat="server" ControlToValidate="ddlProcedureCode" meta:resourcekey="RequiredFieldValidator1"
                                Display="Dynamic" ErrorMessage="Heading Code is a required field."></asp:RequiredFieldValidator>
                        <asp:TextBox ID="txtStatus" runat="server" CssClass="hidden" meta:resourcekey="txtStatusResource1"></asp:TextBox></td>
                </tr>
                <tr>
                    <td style="width: 251px; vertical-align: top; text-align: right;" colspan="">
                        <asp:Label ID="lblHeadingNameDet" runat="server" Text="Procedure Name" meta:resourcekey="lblHeadingNameDet"
                            Width="100%"></asp:Label>
                    </td>
                    <td style="width: 251px; vertical-align: top; text-align: left;">
                        <asp:TextBox ID="txtHeadingNameDet" runat="server" Width="250px" meta:resourcekey="txtHeadingNameDetResource1"
                            MaxLength="30"></asp:TextBox>
                    </td>
                    <td style="width: 251px; vertical-align: top; text-align: right;" colspan="">
                        <asp:Label ID="lblSequence" runat="server" Text="Sequence" meta:resourcekey="lblSequence"
                            Width="100%"></asp:Label>
                    </td>
                    <td style="width: 251px; vertical-align: top; text-align: left;">
                        <cc1:MaskedEditExtender ID="MaskedEditExtender1" runat="server" TargetControlID="txtSequence"
                            Mask="999" MaskType="Number" InputDirection="RightToLeft" AcceptNegative="Left"
                            Enabled="True" CultureAMPMPlaceholder="" CultureCurrencySymbolPlaceholder=""
                            CultureDateFormat="" CultureDatePlaceholder="" CultureDecimalPlaceholder="" CultureThousandsPlaceholder=""
                            CultureTimePlaceholder="" />
                        <asp:TextBox ID="txtSequence" runat="server" Width="30px" meta:resourcekey="txtSequence"
                            MaxLength="3"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td style="width: 251px; vertical-align: top; text-align: right;" colspan="">
                        <asp:Label ID="lblDocumentNoDet" runat="server" Text="Document Number" meta:resourcekey="lblDocumentNoDet"
                            Width="100%" Visible="False"></asp:Label>
                        <asp:Label ID="lblStatusDet" runat="server" Text="Status" meta:resourcekey="lblStatusDet"
                            Width="100%"></asp:Label></td>
                    <td style="width: 268px; vertical-align: top; text-align: left;">
                        <asp:TextBox ID="txtDocumentNoDet" runat="server" meta:resourcekey="txtDocumentNoDetResource1"
                            MaxLength="30" Visible="False"></asp:TextBox>
                        <asp:ObjectDataSource ID="ODSStatus" runat="server" OldValuesParameterFormatString="original_{0}"
                            SelectMethod="GetCodesByType" TypeName="IPTableAdapters.CodeTableAdapter">
                            <SelectParameters>
                                <asp:Parameter DefaultValue="HS" Name="Type" Type="String" />
                            </SelectParameters>
                        </asp:ObjectDataSource>
                        <asp:DropDownList ID="ddlStatusDet" runat="server" Width="134px" meta:resourcekey="ddlStatusDetResource1"
                            DataSourceID="ODSStatus" DataTextField="Code" DataValueField="Code" OnPreRender="ddlStatusDet_PreRender">
                        </asp:DropDownList></td>
                    <td colspan="1" style="vertical-align: top; width: 268px; text-align: right">
                        </td>
                    <td colspan="1" style="vertical-align: top; text-align: left; width: 268px;">
                        &nbsp;
                    </td>
                </tr>
                <tr>
                    <td style="width: 251px; vertical-align: top; text-align: right; height: 39px;" colspan="">
                        <asp:Label ID="lblRemarksDet" runat="server" Text="Remarks" meta:resourcekey="lblRemarksDet"
                            Width="100%"></asp:Label>
                    </td>
                    <td style="vertical-align: top; text-align: left; width: 268px; height: 39px;" colspan="3">
                        <asp:TextBox ID="txtRemarksDet" runat="server" Width="400px" meta:resourcekey="txtRemarksDetResource1"
                            Height="31px" TextMode="MultiLine" MaxLength="100"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td style="width: 251px; vertical-align: top; text-align: right;" colspan="">
                        <asp:Label ID="lblACMEDueDate" runat="server" Text="Company Due Date" meta:resourcekey="lblACMEDueDate"
                            Width="100%"></asp:Label>
                    </td>
                    <td style="width: 268px; vertical-align: top; text-align: left;">
                        <cc1:CalendarExtender ID="CalendarExtender1" runat="server" TargetControlID="txtACMEDueDate"
                            Enabled="True" Format="dd/MM/yyyy">
                        </cc1:CalendarExtender>
                        <asp:TextBox ID="txtACMEDueDate" runat="server" Width="110px" meta:resourcekey="txtACMEDueDateResource1"></asp:TextBox>
                    </td>
                    <td colspan="1" style="vertical-align: top; width: 15%; text-align: right;">
                        <asp:Label ID="lblAgentDueDate" runat="server" Text="Agent Due Date" meta:resourcekey="lblAgentDueDate"
                            Width="100%"></asp:Label></td>
                    <td colspan="1" style="vertical-align: top; text-align: left; width: 268px;">
                        <cc1:CalendarExtender ID="CalendarExtender2" runat="server" TargetControlID="txtAgentDueDate"
                            Enabled="True" Format="dd/MM/yyyy">
                        </cc1:CalendarExtender>
                        <asp:TextBox ID="txtAgentDueDate" runat="server" Width="110px" meta:resourcekey="txtAgentDueDateResource1"></asp:TextBox></td>
                </tr>
                <tr>
                    <td style="width: 251px; vertical-align: top; text-align: right;" colspan="">
                        <asp:Label ID="lblCompletionDate" runat="server" Text="Completion Date" meta:resourcekey="lblCompilationDate"
                            Width="100%"></asp:Label>
                    </td>
                    <td style="width: 268px; vertical-align: top; text-align: left;">
                        <cc1:CalendarExtender ID="CalendarExtender3" runat="server" TargetControlID="txtCompilationDate"
                            Enabled="True" Format="dd/MM/yyyy">
                        </cc1:CalendarExtender>
                        <asp:TextBox ID="txtCompilationDate" runat="server" Width="110px" meta:resourcekey="txtCompilationDateResource1"></asp:TextBox>
                    </td>
                    <td colspan="1" style="vertical-align: top; width: 15%; text-align: right">
                        <asp:Label ID="lblAction" runat="server" Text="Action" meta:resourcekey="lblAction"
                            Width="100%" Visible="False"></asp:Label></td>
                    <td colspan="1" style="vertical-align: top; text-align: left">
                        <asp:CheckBox ID="cbAction" runat="server" meta:resourcekey="cbActionResource1" Visible="False" /></td>
                </tr>
                <tr>
                    <td colspan="4" align="center">
                        <asp:TextBox ID="txtRowPointer" runat="server" Visible="False" meta:resourcekey="txtRowPointerResource1"></asp:TextBox>
                        &nbsp;&nbsp
                        <asp:Button ID="btnSave" runat="server" Text="Save" Width="72px" OnClick="btnSave_Click"
                            meta:resourcekey="btnSave" CssClass="submit" />
                        &nbsp;&nbsp;
                        <asp:Button ID="btnCancel" runat="server" Text="Cancel" Width="72px" OnClick="btnCancel_Click"
                            meta:resourcekey="btnCancel" CssClass="reset" CausesValidation="False" />
                    </td>
                </tr>
            </table>
        </asp:Panel>
        <asp:Panel ID="Panel2" runat="server" Height="487px" ScrollBars="Auto" Width="434px" Style="display: none" CssClass="modalPopup" meta:resourcekey="Panel2Resource1">
            <asp:Panel ID="Panel3" runat="server" Style="cursor: move; background-color: #DDDDDD;
                border: solid 1px Gray; color: Black" Width="90%" meta:resourcekey="Panel3Resource1">
                <div>
                    <p style="width: 100%">
                        <asp:Label ID="lblCap" runat="server" Text="Choose the Procedure Set you would like to add:"
                            meta:resourcekey="lblCapResource1"></asp:Label>
                    </p>
                </div>
            </asp:Panel>
            <asp:ObjectDataSource ID="ODSHeadingSet1" runat="server" OldValuesParameterFormatString="original_{0}"
                SelectMethod="GetHeadingSetData" TypeName="IPTableAdapters.HeadingSetTableAdapter">
            </asp:ObjectDataSource>
            <div style="padding: 3px">
                <asp:Panel ID="Panel4" runat="server" Height="352px" ScrollBars="Both" Width="100%"
                    meta:resourcekey="Panel4Resource1">
                    <asp:GridView CssClass="Grid" ID="gvHeadingSet" runat="server" AutoGenerateColumns="False"
                        BackColor="#DEBA84" BorderColor="#DEBA84" BorderStyle="None" BorderWidth="1px"
                        CellPadding="2" CellSpacing="1" DataKeyNames="HeadingSet" DataSourceID="ODSHeadingSet1"
                        Height="123px" meta:resourcekey="gvHeadingSetResource1" CaptionAlign="Top">
                        <FooterStyle CssClass="GridFooterStyle" BackColor="#F7DFB5" ForeColor="#8C4510" />
                        <Columns>
                            <asp:TemplateField HeaderText="Select" meta:resourcekey="sSelect">
                                <ItemStyle HorizontalAlign="Center" VerticalAlign="Top" Wrap="False" />
                                <HeaderStyle CssClass="GridHeaderStyle" HorizontalAlign="Center" />
                                <ItemTemplate>
                                    <asp:CheckBox ID="cbSelect" runat="server" meta:resourcekey="sSelect" />
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:BoundField DataField="HeadingSet" HeaderText="Heading Set" ReadOnly="True" SortExpression="HeadingSet"
                                meta:resourcekey="HeadingSet" />
                            <asp:BoundField DataField="HeadingSetName" HeaderText="Heading Set Name" SortExpression="HeadingSetName"
                                meta:resourcekey="BoundFieldResource2" />
                        </Columns>
                        <RowStyle CssClass="GridRowStyle" BackColor="#FFF7E7" ForeColor="#8C4510" VerticalAlign="Top" />
                        <SelectedRowStyle CssClass="GridSelectedRowStyle" BackColor="#738A9C" Font-Bold="True"
                            ForeColor="White" VerticalAlign="Top" />
                        <PagerStyle CssClass="GridPagerStyle" ForeColor="#8C4510" HorizontalAlign="Center" />
                        <HeaderStyle CssClass="GridHeaderStyle" BackColor="#A55129" Font-Bold="True" ForeColor="White" />
                        <EditRowStyle BorderStyle="None" />
                    </asp:GridView>
                </asp:Panel>
            </div>
            <div style="padding: 10px; text-align: center">
                <asp:Button ID="OkButton" runat="server" Text="OK" CssClass="submit" OnClick="OkButton_Click"
                    meta:resourcekey="OkButtonResource1" />
                <asp:Button ID="CancelButton" runat="server" Text="Cancel" CssClass="reset" meta:resourcekey="CancelButtonResource1" />
            </div>
        </asp:Panel>
        <cc1:ModalPopupExtender ID="ModalPopupExtender" runat="server" TargetControlID="btnProcedureSetTemplate"
            PopupControlID="Panel2" BackgroundCssClass="modalBackground" CancelControlID="CancelButton"
            DropShadow="True" PopupDragHandleControlID="Panel3" DynamicServicePath="" Enabled="True" OnLoad="ModalPopupExtender_Load" />

        </form>
</body>
</html>
